#ifndef REGISTER_H
#define REGISTER_H

#include <QDialog>
#include <QJsonDocument>
#include <QJsonObject>
#include "communicate.h"

namespace Ui {
class Register;
}

class Register : public QDialog
{
    Q_OBJECT

public:
    explicit Register(communicate *com,QWidget *parent = nullptr);
    ~Register();

private slots:
    void on_pushButton_2_clicked();

    void on_pushButton_clicked();
    void rstResult(int ret);

private:
    Ui::Register *ui;
    QJsonObject  json;
    communicate *com;
};

#endif // REGISTER_H
